import {CommonModel} from "./commonModel.ts";

export namespace Resource {
    import Model = CommonModel.Model;
    import PageQuery = CommonModel.PageQuery;

    interface ResourceBase {
        parentId: number
        name: string
        path: string
        method: string
        intro: string
        route: string
    }

    export interface ResourceDel {
        ids: Array<number>
    }

    export interface ResourceQuery extends ResourceBase, Model, PageQuery {
    }

    export interface ResourceItem extends  ResourceBase, Model{}


    interface ResourceGroupBase{
        parentId: number
        name: string
        intro:string
        state:string
    }

    export interface ResourceGroupDel {
        ids: Array<number>
    }

    export interface ResourceGroupQuery extends ResourceGroupBase, Model, PageQuery{}

    export interface ResourceGroupItem extends ResourceGroupBase,Model{}


}